home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / fromspacelove.swf / scripts / DefineButton2_458 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2006-06-13  |  1.6 KB  |  61 lines

  1. on(press){
  2.    if(UserName.length > 0)
  3.    {
  4.       Masks = new Array("whuerghasdklfhg","14JuhdhHUew92302354J","HDuie98234hsd98234yrhsd","(shd023ihjHh88y)=0mNHkwer","DFHJh89(7hdjehwoiu73280","ASDsd430iHDu8h239h234>Dsl","ASsdl├▒fe)I)(hiewhfsjdn%┬╖dsfks","ASDgdffldF)%$hjdhfsa","EJhjow4e8EDjiewjIE","EIohjawfbu887HJDowehdu","oiweih)uhUHE23eUNEphb*ikwheo","IOENDFiuwrefbuiEUWdbu34","EikiwrejfnuUEHiwedfbi");
  5.       Data = new Array();
  6.       Data[0] = random(Masks.length);
  7.       Data[1] = random(Masks[Data[0]].length);
  8.       Data[2] = UserName.length;
  9.       ScoreSt = UserScore.toString();
  10.       Data[3] = ScoreSt.length;
  11.       i = 0;
  12.       while(i < Data[2])
  13.       {
  14.          Data[5 + i] = ord(UserName.charAt(i));
  15.          i++;
  16.       }
  17.       i = 0;
  18.       while(i < Data[3])
  19.       {
  20.          Data[5 + Data[2] + i] = ord(ScoreSt.charAt(i));
  21.          i++;
  22.       }
  23.       CheckSum = 0;
  24.       i = 5;
  25.       while(i < Data.length)
  26.       {
  27.          CheckSum += Data[i];
  28.          i++;
  29.       }
  30.       Data[4] = CheckSum % 100;
  31.       COS = Data[1];
  32.       i = 2;
  33.       while(i < Data.length)
  34.       {
  35.          MaskCo = ord(Masks[Data[0]].charAt(COS)) % 40;
  36.          if(MaskCo == 0)
  37.          {
  38.             MaskCo = 40;
  39.          }
  40.          Data[i] += ord(Masks[Data[0]].charAt(COS));
  41.          Data[i] *= MaskCo;
  42.          COS++;
  43.          if(COS >= Masks[Data[0]].length)
  44.          {
  45.             COS = 0;
  46.          }
  47.          i++;
  48.       }
  49.       Output = Data.join("x");
  50.       Dt.res = Output;
  51.       SendData = true;
  52.       RName = UserName;
  53.       RScore = UserScore;
  54.       gotoAndStop(2);
  55.    }
  56.    else
  57.    {
  58.       Nm.gotoAndPlay(2);
  59.    }
  60. }
  61.